<?php
namespace Home\Controller;
use Think\Controller;
class MoodController extends Controller {
	/**
	 * 心情
	 */
    public function index(){
    	$fieldString = "chat_title,chat_content,is_display,chat_time";
    	$moodList = D('Mood')->moodSelect($fieldString,['is_display' => 1],'chat_time');
    	$this->assign('moodList',$moodList);
        $this->display('mood');
    }
}